import { createApp } from 'vue'
import App from '@/App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'virtual:svg-icons-register'
import globalComponent from '@/components/index.ts'
import '@/assets/scss/index.scss'
import router from './router'
import pinia from '@/store'
import Plugins from '@/utils/plugins'
// 暗黑模式
import 'element-plus/theme-chalk/dark/css-vars.css'

const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn
})
app.use(globalComponent)
app.use(router)
app.use(pinia)
app.use(Plugins)

app.mount('#app')
